Repository navigation
Conversation
Member
|
Thanks for the PR. There are two separate problems here (one with Jersey and one with WebFlux) that should be addressed separately. Please update this PR to focus on either Jersey or WebFlux and open a second PR for the other. Looking at the proposed tests, they're quite a bit more verbose than what was added in #48581. Please either explain why that's warranted or update them. |
Isolate the URI tag filter so that registering the Jersey observation listener does not require Boot's metrics module. Back off when Boot's observation module is unavailable. Signed-off-by: WooSeung Kim <wooseung.dev@gmail.com>
beyondwin
force-pushed
the
jersey-observation-without-metrics
branch
from
December 4, 2026 02:16
c033656 to
b497124
Compare
Contributor
Author
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A Spring Boot 4.0.10 Jersey application using
spring-boot-starter-zipkinandjersey-micrometerfails to start withoutspring-boot-micrometer-metrics. Jersey's observation auto-configuration enablesMetricsPropertiesfor its URI tag filter on the outer class, so it fails when that class is missing. gh-48581 fixed the same problem for Spring MVC.Move the URI tag filter into a nested configuration that requires the metrics module, as Spring MVC does, so the Jersey observation listener can still be registered without it. When the Boot observation module is absent and the application supplies its own
ObservationRegistry, the auto-configuration now backs off instead of failing.